﻿
@using S4Store.Models
@model LX.Core.Query.PagedList<S4Store.Domain.Employee>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
<div class="grid">
		<table class="table" width="100%" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="250">所属店</th>
				<th width="50">姓名</th>
				<th width="50">性别</th>
				<th width="50">年龄</th>
				<th width="50">岗位级别</th>
				<th width="80">电话</th>
				<th width="50">从业资历</th>
				<th width="50">工作岗位</th>
				<th width="50">在职状态</th>
			</tr>
		</thead>
		<tbody>
            @foreach(var m in this.Model.Data){
                <tr>
				    <td style=" text-align:center"><input name="ids" value="@m.Id" type="checkbox"></td>
				    <td>@m.Store.Name</td>	
				    <td>@m.Name</td>
				    <td>@m.Sex.GetDescription()</td>
				    <td>@((int)((DateTime.Now-m.Birthday).TotalDays/365))</td>
				    <td>@m.SellerGrade.GetDescription()</td>
				    <td>@m.Tel</td>
				    <td>@(m.WorkYear)年</td>
				    <td>@m.Type.GetDescription()</td>		
				    <td>@m.Status.GetDescription()</td>			
			    </tr>	
            }					
		</tbody>
	</table>
</div>
</div>
@Html.Partial("Pager",new PagerModel{ Page=Model.Page, Total=Model.Total, PageSize= Model.PageSize})	
